﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Organizer
{
    /// <summary>
    /// Логика взаимодействия для Stats.xaml
    /// </summary>
    public partial class Statistica : Window
    {
        private Statistic st;
        public Statistica()
        {
            InitializeComponent();
        }

        public Statistica(Statistic st)
        {
            InitializeComponent();
            All.Text = st.allTasks.ToString();
            Done.Text = st.doneTasks.ToString();
            Process.Text = st.processesTasks.ToString();
            Evaluate.Text = st.evaluateTime.ToString();
            Spend.Text = st.spendTime.ToString();
            ErrorEvaluate.Text = st.errorEvaluate.ToString();
            ErrorEvaluateByTask.Text = st.errorEvaluateByTask.ToString();

        }

        private void CloseStatsClick(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
